﻿namespace BBICMS.Model
{
    using Core;
    using System.ComponentModel.DataAnnotations;

    public partial class Carousel : AuditableEntity<int>
    {
      
        [Display(Name = "主题", Prompt = "主题")]
        [Required(ErrorMessage = "请输入主题")]
        public string Title { get; set; }

        [Display(Name = "轮播图", Prompt = "轮播图")]
        [Required(ErrorMessage = "请选择图片")]
        public string ImageUrl { get; set; }


        [Display(Name = "排序", Prompt = "排序")]
        [RegularExpression(@"^-?\d*$", ErrorMessage = "格式不正确")]
        public int Importance { get; set; }



        [Display(Name = "链接", Prompt = "链接")]
        [Required(ErrorMessage = "请输入链接地址")]
        [Url(ErrorMessage = "网址格式不正确")]
        public string WebLink { get; set; }


        [Display(Name = "描述", Prompt = "描述...")]
        public string Description { get; set; }
        [Display(Name = "显示", Prompt = "显示")]
        public bool Active { get; set; }

       
      

    }
}
